home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VCM / VCM.MDB / VcmComponentContainer / 14_Cabinet / EDITDLG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-18  |  1.6 KB  |  73 lines

  1. // EditDlg.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes and
  4. // Templates (MFC&T).
  5. // Copyright (C) 1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // MFC&T Reference and related electronic documentation provided
  10. // with the library.  See these sources for detailed information
  11. // regarding the MFC&T product.
  12. //
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CEditDlg dialog
  16.  
  17. class CEditDlg : public CDialog
  18. {
  19. // Construction
  20. public:
  21.     int m_nCurSel;
  22.     CEditDlg();
  23.     CEditDlg(CMapStringToString& mapData);
  24.     CEditDlg(CListCtrlEx* pCtrl, int nItem, int nFields);
  25.  
  26. // Dialog Data
  27.     //{{AFX_DATA(CEditDlg)
  28.     enum { IDD = IDD_EDIT_DIALOG };
  29.     CEdit   m_ctlEdit;
  30.     CListBox    m_ctlListBox;
  31.     CString m_strEdit;
  32.     //}}AFX_DATA
  33.  
  34. // Attributes
  35. public:
  36.     CString GetValue(CString strKey);
  37.  
  38. protected:
  39.     BOOL    m_bMode;
  40.  
  41. protected:
  42.     CMapStringToString  m_mapField;
  43.     CListCtrlEx*        m_pListCtrl;
  44.     int                 m_nItem;
  45.     int                 m_nFields;
  46.  
  47. // Operations
  48. public:
  49.  
  50. // Overrides
  51.     // ClassWizard generated virtual function overrides
  52.     //{{AFX_VIRTUAL(CEditDlg)
  53.     protected:
  54.     virtual void DoDataExchange(CDataExchange* pDX);
  55.     //}}AFX_VIRTUAL
  56.  
  57. // Implementation
  58. public:
  59.     virtual ~CEditDlg();
  60.  
  61.     // Generated message map functions
  62. protected:
  63.     //{{AFX_MSG(CEditDlg)
  64.     virtual BOOL OnInitDialog();
  65.     afx_msg void OnFieldChange();
  66.     virtual void OnOK();
  67.     //}}AFX_MSG
  68.  
  69.     DECLARE_MESSAGE_MAP()
  70. };
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73.